﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001217 RID: 4631
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartFinishMainMissionScNotify : IMessage<StartFinishMainMissionScNotify>, IMessage, IEquatable<StartFinishMainMissionScNotify>, IDeepCloneable<StartFinishMainMissionScNotify>, IBufferMessage
	{
		// Token: 0x17003AB2 RID: 15026
		// (get) Token: 0x0600CF9B RID: 53147 RVA: 0x0022F559 File Offset: 0x0022D759
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartFinishMainMissionScNotify> Parser
		{
			get
			{
				return StartFinishMainMissionScNotify._parser;
			}
		}

		// Token: 0x17003AB3 RID: 15027
		// (get) Token: 0x0600CF9C RID: 53148 RVA: 0x0022F560 File Offset: 0x0022D760
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartFinishMainMissionScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003AB4 RID: 15028
		// (get) Token: 0x0600CF9D RID: 53149 RVA: 0x0022F572 File Offset: 0x0022D772
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartFinishMainMissionScNotify.Descriptor;
			}
		}

		// Token: 0x0600CF9E RID: 53150 RVA: 0x0022F579 File Offset: 0x0022D779
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartFinishMainMissionScNotify()
		{
		}

		// Token: 0x0600CF9F RID: 53151 RVA: 0x0022F581 File Offset: 0x0022D781
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartFinishMainMissionScNotify(StartFinishMainMissionScNotify other) : this()
		{
			this.mainMissionId_ = other.mainMissionId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CFA0 RID: 53152 RVA: 0x0022F5A6 File Offset: 0x0022D7A6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartFinishMainMissionScNotify Clone()
		{
			return new StartFinishMainMissionScNotify(this);
		}

		// Token: 0x17003AB5 RID: 15029
		// (get) Token: 0x0600CFA1 RID: 53153 RVA: 0x0022F5AE File Offset: 0x0022D7AE
		// (set) Token: 0x0600CFA2 RID: 53154 RVA: 0x0022F5B6 File Offset: 0x0022D7B6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MainMissionId
		{
			get
			{
				return this.mainMissionId_;
			}
			set
			{
				this.mainMissionId_ = value;
			}
		}

		// Token: 0x0600CFA3 RID: 53155 RVA: 0x0022F5BF File Offset: 0x0022D7BF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartFinishMainMissionScNotify);
		}

		// Token: 0x0600CFA4 RID: 53156 RVA: 0x0022F5CD File Offset: 0x0022D7CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartFinishMainMissionScNotify other)
		{
			return other != null && (other == this || (this.MainMissionId == other.MainMissionId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CFA5 RID: 53157 RVA: 0x0022F5FC File Offset: 0x0022D7FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.MainMissionId != 0U)
			{
				num ^= this.MainMissionId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CFA6 RID: 53158 RVA: 0x0022F63B File Offset: 0x0022D83B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CFA7 RID: 53159 RVA: 0x0022F643 File Offset: 0x0022D843
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CFA8 RID: 53160 RVA: 0x0022F64C File Offset: 0x0022D84C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.MainMissionId != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.MainMissionId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CFA9 RID: 53161 RVA: 0x0022F680 File Offset: 0x0022D880
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.MainMissionId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MainMissionId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CFAA RID: 53162 RVA: 0x0022F6BE File Offset: 0x0022D8BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartFinishMainMissionScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.MainMissionId != 0U)
			{
				this.MainMissionId = other.MainMissionId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CFAB RID: 53163 RVA: 0x0022F6EF File Offset: 0x0022D8EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CFAC RID: 53164 RVA: 0x0022F6F8 File Offset: 0x0022D8F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 72U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.MainMissionId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005341 RID: 21313
		private static readonly MessageParser<StartFinishMainMissionScNotify> _parser = new MessageParser<StartFinishMainMissionScNotify>(() => new StartFinishMainMissionScNotify());

		// Token: 0x04005342 RID: 21314
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005343 RID: 21315
		public const int MainMissionIdFieldNumber = 9;

		// Token: 0x04005344 RID: 21316
		private uint mainMissionId_;
	}
}
